package tree.operators;

public class ConstOp extends Op {

	private double value;
	
	public ConstOp(double value)
	{
		this.arity = 0;
		this.value = value;
	}
	
	@Override
	public double evaluate(double inputValue, double[] args) {
		return value;
	}

	@Override
	public String toString() {
		return Double.toString(value);
	}

}
